package com.cqie.service;

import com.cqie.dto.PrescriptionInfo.AddPrescriptionInfoDto;
import com.cqie.dto.PrescriptionInfo.PrescriptionInfoDto;
import com.cqie.entity.PrescriptionInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqie.exception.SpecialException;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>
 * 处方信息 服务类
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-26
 */
public interface IPrescriptionInfoService extends IService<PrescriptionInfo> {

    /**
     * 新增处方信息
     * @param addPrescriptionInfoDto
     * @return
     */
    Boolean addPrescriptionInfo(AddPrescriptionInfoDto addPrescriptionInfoDto) throws SpecialException;

    /**
     * 查看处方列表
     * @param likeQuery
     * @param isPay
     * @param pageSize
     * @param pageIndex
     * @return
     */
    List<PrescriptionInfo> getPrescriptionInfoList(String likeQuery , String isPay,
                                                       Integer pageSize , Integer pageIndex);


    /**
     * 根据病例编码查看处方信息
     * @param caseCode
     * @return
     */
    PrescriptionInfoDto getPrescriptionInfoByCaseCode(String caseCode);

    /**
     * 根据处方编码删除处方信息
     * @param prescriptionCode
     * @return
     */
    Boolean delPrescriptionInfo(String prescriptionCode) throws SpecialException;

}
